package cn.thornbird.orgsync.vo.record;

import cn.thornbird.orgsync.entity.City;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

@Data
public class CityRecord extends Record<City> {

    @Size(max = 32, message = "省份ID长度不符合要求")
    private String parentId;

    @NotNull(message = "序号不能为空")
    private Short cityNumber;

    @NotBlank(message = "名称不能为空")
    @Size(max = 32, min=3, message = "名称长度不符合要求")
    private String name;

}
